package co.znmc.test.service;

import co.znmc.test.dao.CUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: chenbin
 * @Description:
 * @Date: create in 2021/11/8 17:38
 */
@Service
public class UserService {
  @Autowired
  private CUserMapper cUserMapper;

  @Transactional(rollbackFor = Exception.class)
  public Integer test() {
    cUserMapper.selectCount();
    return cUserMapper.selectCount();
  }
}
